package engine.network.hostSide.abstractClasses;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;

/**
 * Abstract class design to regroup all the common feature needed to 
 * create a ClientSocket and work with it ...
 * @author larnima
 *
 */
public abstract class HandlingThread extends Thread {
	protected PrintWriter _out;
	protected BufferedReader _in;
	protected Socket _s;
	public HandlingThread(Socket s){
		_s = s;
		try{
			_out = new PrintWriter(_s.getOutputStream());
			_in = new BufferedReader(new InputStreamReader(_s.getInputStream()),65536);
			
		}catch(IOException e){
			
		}
	}
	
	
	@Override
	public abstract void run();

}
